package Data::Conveyor::App::Test::Stage::TxSelector;

# $Id: TxSelector.pm 9526 2005-07-01 12:41:14Z gr $

use warnings;
use strict;
use Test::More;
use Data::Dumper;


our $VERSION = '0.02';


use base 'Data::Conveyor::App::Test::Stage';


use constant DEFAULTS => (
    expected_stage_const => 'ST_TXSEL',
);


sub plan_test {
    my ($self, $test, $run) = @_;
    $self->plan_ticket_expected_container($test, $run) + 1;
}


sub test_expectations {
    my $self = shift;
    $self->SUPER::test_expectations(@_);
    $self->check_ticket_expected_container;

    is_deeply_flex(
        $self->ticket->payload->comparable,
        $self->expect->{payload}->comparable,
        'resulting payload'
    ) or print Dumper $self->ticket->payload->comparable;
}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - stage-based conveyor-belt-like ticket handling system

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

None yet. This is an early release; fully functional, but undocumented. The
next release will have more documentation.

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

